import { createApp } from "vue";
import { createPinia } from 'pinia'
import App from "./App.vue";
import router from "./router";
import Vant from "vant";
import "vant/lib/index.css";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import store from "./stores/store"
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import NutUI from "@nutui/nutui";
// 采用按需加载时  此全局css样式，需要删除
import "@nutui/nutui/dist/style.css";
import i18n from "./locals";
import 'animate.css';

const app = createApp(App); 

app.use(i18n)
app.use(router);
app.use(ElementPlus);
app.use(Antd);
app.use(NutUI);
app.use(createPinia())
app.use(Vant);
app.mount("#app");
app.use(store)


const rootValue = 16;
const rootWider = 390;
const deviceWidth = document.documentElement.clientWidth;


document.documentElement.style.fontSize =
    (deviceWidth * rootValue) / rootWider + "px";
